/*
 * Copyright © 2016 Cask Data, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

@import '../../styles/variables.scss';

.cask-card {
  .experimental-banner {
    padding-left: 5px;
    display: inline-block;
    position: relative;
    color: white;
    background-color: #ff6600;
    text-shadow: 0px 1px 2px #bbbbbb;
    box-shadow: 0px 2px 4px #888888;
    font-size: 12px;
    display: block;
  }

  &.market-place-usecase-package-card {
    margin: 5px 0 15px 0;
    box-shadow: 1px 2px 10px 0 rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    width: 100%;
    padding: 0;

    .title {
      background: gray;
      color: white;
      span {
        padding: 10px;
        &:last-child {
          border-left: 1px solid;
        }
      }
    }
    .card-body {
      padding: 0;
    }
    .entity-information {
      padding: 15px;
      display: inline-flex;
      background-color: #eeeeee;
      width: 100%;

      .entity-modal-image {
        width: 100px;
        height: 100px;

        img {
          width: inherit;
          height: inherit;
        }
        [class*="icon-"] {
          line-height: 87px;
          font-size: 60px;
          width: 87px;
          display: inline-block;
          text-align: center;
        }
      }
      .entity-content {
        display: flex;
        flex-direction: row;
        width: calc(100% - 125px);
        .entity-description {
          margin-left: 10px;
          padding-right: 15px;
          width: 70%;
        }
        .entity-metadata {
          > div {
            color: gray;
          }
        }
      }
    }
    .actions-container {
      position: relative;
      .arrow-container {
        background: #eeeeee;
        border: 1px solid #cccccc;
        padding: 5px 0;
        border-left: 0;
        border-right: 0;
        cursor: pointer;
      }
      .market-entity-actions {
        position: absolute;
        background: white;
        width: 100%;
        box-shadow: 1px 2px 10px 0 rgba(0, 0, 0, 0.3);
        user-select: none;
        z-index: 1;
        margin-bottom: 10px;
      }
    }
  }
}
